<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<title>edit - memotoru -</title>
<link rel="stylesheet" type="text/css" href="/css/default.css" />
<script type="text/javascript">

function resizeTextArea(){
	var ta=document.getElementById("myTextArea");
	var myw=0.9*(getBrowserWidth());
	var myh=0.7*(getBrowserHeight());

	var mycss="width:"+myw+"px;height:"+myh+"px;border:solid 1px #333;";
	ta.style.cssText=mycss;
}
function getBrowserWidth() {  
	if ( window.innerWidth ) {
		return window.innerWidth; 
	} 
	else if ( document.documentElement && document.documentElement.clientWidth != 0 ) {
		return document.documentElement.clientWidth; 
	}
	else if ( document.body ) {
		return document.body.clientWidth;
	}
	return 0;  
}  
function getBrowserHeight() {  
	if ( window.innerHeight ) {
		return window.innerHeight; 
	} 
	else if ( document.documentElement && document.documentElement.clientHeight != 0 ) {
		return document.documentElement.clientHeight; 
	}
	else if ( document.body ) {
		return document.body.clientHeight;
	}
	return 0;  
}  
</script>
</head>
<body onload="resizeTextArea()">

<div style="margin-bottom:10px;padding:5px;text-align:left;background-color:#ccc;">
<b>Memotoru</b>
&nbsp;
&nbsp;
&nbsp;
<a href='/'>Index</a>
|
<b>Edit</b>
&nbsp;
&nbsp;
&nbsp;
<a href='{{ url }}'>{{ url_linktext }}</a>
</div>

<div class="root">
<form method="post" action="/Save">
<textarea id="myTextArea" name="content" style="width:320px;height:420px;border:solid 1px #333;">{{ note.content }}</textarea>
<div style="padding:0;margin-top:10px;">
<input type="hidden" name="fname" value="{{ note.fname }}" />
<input type="submit" value=" Save " />
</div>
</form>
<div><!--// root -->

</body>
</html>

